# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Caleb Cushing <xenoterracide@gmail.com>

pkgname=perl-image-info
pkgver=1.43
pkgrel=1
pkgdesc="Extract meta information from image files"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
url='https://search.cpan.org/dist/Image-Info'
source=(https://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Image-Info-$pkgver.tar.gz)
sha256sums=('4bc417889395efa91976e3aea7b1210dbd84bb64e7ee04ec6140900fdb5d71f9')

build() {
  cd "$srcdir"/Image-Info-$pkgver
  export PERL_MM_USE_DEFAULT=1
  perl Makefile.PL INSTALLDIRS=vendor
  make
  make test
}

package() {
  cd "$srcdir"/Image-Info-$pkgver
  make DESTDIR="${pkgdir}/" install
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
